cc.Class({
    extends: cc.Component,
    properties: {
        homeScene: cc.Prefab
    },
    onLoad: function () {
        this.initGlobal();
    },
    start: function () {
    },
    initGlobal: function () {
        console.log("goto initGlobal"), tywx.SDKHandler.setSceneHasOnLoad(!0), Global.SDK.init(cc.sys.platform),
            Global.SDK.showShareMenu(), tywx.IsWechatPlatform() || (console.log("initGlobal login"),
            Global.SDK.login());
        var e = function () {
            console.log("onLoaded sceneName:", "homeScene");
        }.bind(this);
        SceneHelper.loadScene("homeScene", e);
    }
})
